﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Travel.Data.Inputs
{
    /// <summary>
    /// 订单入参
    /// </summary>
    public class OrderAddInput : BaseInput
    {
        /// <summary>
        /// 景点ID
        /// </summary>
        public long TravelId { get; set; }
        /// <summary>
        /// SignaIR 的连接ID
        /// </summary>
        [Required]
        public string ConnectionId { get; set; }
        /// <summary>
        /// 亲友列表（如果没有亲友，就可以空着）
        /// </summary>
        public List<Friend> Friends { get; set; } = new List<Friend>();
    }
    /// <summary>
    /// 亲友信息
    /// </summary>
    public class Friend
    {
        /// <summary>
        /// 亲友手机
        /// </summary>
        public string Mobile { get; set; }
        /// <summary>
        /// 亲友名称
        /// </summary>
        public string NickName { get; set; }
    }
}

